Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A shorter way to write polynomial evaluation, with a comprehension #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

achlipala
Copy link
Collaborator

No description provided.

@benlaurie
Copy link

Gotta say, I'm amused that the "shorter way" is 3 lines longer than the code it replaces. :-)

@franziskuskiefer
Copy link
Member

Can you add this as a third option (next to poly and poly_reduce)? Having them next to each other makes it easier to compare.

@achlipala
Copy link
Collaborator Author

@benlaurie, I'm presuming it's clear, but just in case not: the shorter way includes some set-up infrastructure code that wouldn't be duplicated per primitive. ;-)

@franziskuskiefer, could it be nicer to use Git branches instead of dumping alternatives in single files? I like to take advantage of version-control metadata instead of duplicating part of its functionality within single revisions.

@benlaurie
Copy link

benlaurie commented Mar 2, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants